<%--
 *  File:    LevelEdit.jsp
 *  @Author: TendyHu	 
 *  Date:    2010/10/15
 *  @Modifier: Jamesli 
 *  Date:    2011/01/09
 *
 *  Copyright (C) 2000 - 2011 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.OvalLabel" %>
<%@ page import="com.oval.util.OvalCustomMessage" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.LevelHistoryEdit"); 
%>

<% //--------------------------------------  variant and initialization --%>
<%
	String strModuleName = "COM";
	String privilegeCode = "10380,10381,10382,10383,10384";
	String contextPath = request.getContextPath();
%>

<% //--------------------------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>


<html>
<head>
<title>LevelRuleEdit</title>
<PageFlow:CheckPageFlow pageName="p_levelhistoryedit"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<%@ include file="/inc/InitEdit.inc" %>
<% //--------------------------------------  output variant from pageflow --%>

<script language="JavaScript">
function page_done()
{
  	if(!checkForm(document.cform))
  		return;  
  	emptyToNull(document.cform);   
  	document.cform.actionname.value = "done";
  	isRunning = true;
  	document.cform.submit();
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
	
	<% //--------------------------------------  hidden form variant --%>
	<form name="cform" method="post" action="<%= contextPath%>/Dispatcher" target="_parent">
  	<input type="hidden" name="pagename" value="p_levelhistoryedit">
  	<input type="hidden" name="actionname">
  	<custom:hidden property="orgid" name="userinfo" scope="session" changedName="createuserid"/>
  	<custom:hidden property="leveltype" changedName="leveltypeid"/>
	<custom:hidden property="pkvalue" name="levelhistory"/>
	<custom:hidden property="originalvalue" name="levelhistory" changedName="orignalvalue"/>
	<custom:hidden property="levelhistoryid" name="levelhistory"/>
	<custom:hidden property="globalpccode"/>
  	<% //--------------------------------------  header --%>
	<table width="100%" cellspacing="0" cellpadding="0">
  	<tr> 
    	<td colspan="2" class="summary_top"></td>
  	</tr>
  	<tr> 
    	<td colspan="2"><img src="<%=contextPath %>/images/<%= strLanguageCode %>/quote.gif" width="16" height="11"> 
		<%= label.getLabelName("L_Edit") + label.getLabelName("L_Colon") %></td>
  	</tr>
	</table>

	<% //--------------------------------------  fields --%>
	<%
		String valuetype = (String)pageContext.getAttribute("valuetype");
	 	if(valuetype == null) valuetype="";
	%>
	<table width="100%" cellspacing="0" cellpadding="0">
    <tr> 
    	<td class="summary_top"> </td>
    </tr>
    <tr>
    	<td valign="top">
        	<table border="1" cellpadding="2" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%">        	
        	<tr> 
            	<td width="14%" class="td-text"><%= label.getLabelName("L_Code") + label.getLabelName("L_Colon")%></td>
            	<td width="86%"><custom:write property="code" name="levelhistory" nbsp="true"/></td>
          	</tr>
          	<tr> 
            	<td width="14%" class="td-text"><%= label.getLabelName("L_OriginalValue") + label.getLabelName("L_Colon")%></td>
            	<td width="86%"><custom:write property="originalvalue" name="levelhistory" dictType="<%=valuetype %>" nbsp="true"/></td>
          	</tr>
          	<tr> 
            	<td class="need" width="14%"><%= label.getLabelName("L_NewValue") + label.getLabelName("L_Colon") %> </td>
            	<td width="86%">
            		<custom:selectdic name="levelhistory" property="newvalue" dictType="<%=valuetype %>" defaultValue="----------------" defaultValueCost=" " command="notnull" label="L_NewValue"/>            		
            	</td>
          	</tr>
                   	
        	</table>
      	</td>
    </tr>
    <tr> 
      	<td class="summary_top"></td>
    </tr>
    
    <% //--------------------------------------  operation button --%>
    <tr> 
      	<td class="td_center" colspan="2"> 
      		<a onclick="page_done()"><custom:button type="1" label="L_Finish" imgsrc="finish.gif" border="0" style="width:60"/></a>
      	</td>
  	</tr>
  	
	</table>
</form>
</body>
</html>


